package android.slc.module.component.dict.repository;

import android.slc.appbase.api.slc.callback.po.SlcEntity;

import java.util.List;
import java.util.Map;

import android.slc.module.component.dict.entity.TreeDict;
import io.reactivex.rxjava3.core.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;

/**
 * @author slc
 * @date 2020-09-11 11:03
 */
public interface DictionaryService {
    @GET("blade-system/dict/dictionary")
    Observable<SlcEntity<List<TreeDict>>> dictionary(@Query("code") String code);

    @GET("blade-system/dict/child-list-only")
    Observable<SlcEntity<List<TreeDict>>> childListOnly(@QueryMap Map<String, Object> queryMap);
}
